<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>五一倒计时</title>
  <style>
    *{
      padding: 0;
      margin: 0 auto;
    }
    div{
      margin-top: 100px;
      width: 500px;
      height: 500px;
      background-color: pink;
     
      border-radius: 100px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      
    }
    p{
      margin-top: 20px;
    }
  </style>
</head>
<body>
  <div>
    <h2>五一倒计时</h2>
    <p>时间</p>
  </div>
  <script src="./utils.js"></script>
  <script>
    var vacation =new Date(2023,4,1,00,00,00)
      function strqury (){
        var date=new Date()
        var str1= diffTime(date,vacation);
        var p = document.querySelector('p')
        p.innerHTML=str1
      }
    setInterval(strqury, 1000);
  </script>
</body>
</html>